package com.indexingsystem.system.service;

import java.util.List;

import com.indexingsystem.boss.entity.ProductCategoryRelations;

public interface IProductCategoryRelationsService {

	/**
	 * 通过商品分类id删除商品分类信息.
	 * @param proCategoryRelationId
	 * @return
	 */
    int deleteByPrimaryKey(String proCategoryRelationId) throws Exception;
    
    int deleteProductCategoryRelationsByIdBatch(List<String> proCategoryRelationIdList) throws Exception;
    /**
     * 新增商品分类信息.
     * @param record
     * @return
     */
    int insert(ProductCategoryRelations record) throws Exception;

    /**
     * 新增商品分类信息.
     * @param record
     * @return
     */
    int insertSelective(ProductCategoryRelations record) throws Exception;

    /**
     * 通过商品分类id查询商品分类信息.
     * @param proCategoryRelationId
     * @return
     */
    ProductCategoryRelations selectByPrimaryKey(String proCategoryRelationId);

    /**
     * 修改商品分类信息.
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(ProductCategoryRelations record) throws Exception;

    /**
     * 修改商品分类信息.
     * @param record
     * @return
     */
    int updateByPrimaryKey(ProductCategoryRelations record) throws Exception;
}